import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { OrderComponent} from './order.component';
import {AllsComponent} from './alls/alls.component';
import {NoDelComponent} from './no-del/no-del.component';
import {NoPayComponent} from './no-pay/no-pay.component';
import {NoRecComponent} from './no-rec/no-rec.component';
import {NoEvaComponent} from './no-eva/no-eva.component';

const routes: Routes = [
  {
    path: '', component: OrderComponent,
    children: [
      {
        path: 'alls', component: AllsComponent
      },
      {
        path: 'no-del', component: NoDelComponent
      },
      {
        path: 'no-pay', component: NoPayComponent
      },
      {
        path: 'no-rec', component: NoRecComponent
      },
      {
        path: 'no-eva', component: NoEvaComponent
      },
      {
        path: '**', component: AllsComponent
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OrderRoutingModule { }
